﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<UserEntity>" %>

<div class="fr-widget">
    <div class="header">
        <div class="icon">
        </div>
        <span>Chỉnh sửa email và chữ ký </span>
    </div>
    <%using (Html.BeginForm("UpdateEmailSignature", "CPanel", FormMethod.Post, new { @id = "EmailSignatureF", @onRequest = "$.MvcForum.showLoading()", @onSuccess = "$.MvcForum.hideLoading();$.MvcForum.ajaxSuccess(msg)" }))
      {

    %>
    <%=Html.AntiForgeryTokenX("EMAIL_SIGNATURE")%>
    <table cellspacing="1" cellpadding="0" width="100%">
        <tr>
            <td class="table-cell width30">
                Email
            </td>
            <td class="table-cell">
                <input type="text" class="input {validate:{required:true,email:true}}" value="<%=Model.Email%>"
                    id="email" name="email" />
            </td>
        </tr>
        <tr>
            <td class="table-cell valign-top">
                Chữ ký
            </td>
            <td class="table-cell">
                <textarea class="tinymce" rows="1" cols="1" id="signature" name="signature" style="height: 200px;
                    width: 99%" mode="medium"><%=Model.Signature%></textarea>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
                &nbsp;
            </td>
            <td class="table-cell">
                <input type="button" class="button" onclick="$.MvcForum.ajaxSubmit('EmailSignatureF')"
                    value="Cập nhật" />
            </td>
        </tr>
    </table>
    <%
        }%>
</div>
